﻿'From Pharo1.3 of 16 June 2011 [Latest update: #13307] on 7 December 2011 at 11:56:59 pm'!TestCase subclass: #PecaTest	instanceVariableNames: ''	classVariableNames: ''	poolDictionaries: ''	category: 'Xadrez-Xeque-Teste'!!PecaTest methodsFor: 'as yet unclassified' stamp: 'RobsonAlecioSomera 11/30/2011 11:22'!testeCriarPecaComInformacoes	| peca |		peca := Peca novaParaNome: #Peao cor: #Branca.		self assert: peca notNil description: 'Deveria ter criado uma peça.'.	self assert: peca nome equals: #Peao.	self assert: peca cor equals: #Branca.! !!PecaTest methodsFor: 'as yet unclassified' stamp: 'RobsonAlecioSomera 11/30/2011 11:14'!testeNaoEPossivelCriarPecaSemNomeECor	self should: [ Peca new ] 		raise: Error		whoseDescriptionIncludes: 'Não use #new, use #novaParaNome:cor:' 		description: 'Erro ao criar peca sem informações'.! !